package com.itheima.repository;

import com.itheima.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * <dl>
 * <dd>描述: ~节点业务逻辑实现</dd>
 * <dd>创建时间：  15:38 2020/7/25</dd>
 * <dd>创建人： zz</dd>
 * <dt>版本历史: </dt>
 * <pre>
 * Date         Author      Version     Description
 * ------------------------------------------------------------------
 * 2020/7/25      guodong       1.0        1.0 Version
 * </pre>
 * </dl>
 */
public interface GoodRepository extends ElasticsearchRepository<Goods,Long> {

    /*
        根据价格范围查找
     */
   // List<Goods> findByPriceBetweenAndBrandAndCategory(Double start, Double end, String brand, String category);
    List<Goods> findByPriceBetween(Double start, Double end);

}
